/*
 * @Author: wangyingjie
 * @Date: 2021-08-19 09:39:37
 * @Email: wyj@hyrctec.com
 * @LastEditors: dailuyu
 * @LastEditTime: 2021-08-27 11:22:38
 * @Company: hyrc
 * @FilePath: \TaskErrorManage\src\api\HomeProject.js
 * @Description:
 */
import axios from "axios"
// 查询问题详情数据
export function GetProject(data) {
  var url = "http://localhost:3000/projectProblemApi/projectQuery?Id=" + data
  return new Promise((resolve, reject) => {
    axios.get(url, {}).then(function (response) {
      resolve(response)
    })
  })
}
// 查询项目数据
export function GetManageinfo() {
  var url = "http://localhost:3000/projectProblemApi/manageinfoQuery"
  return new Promise((resolve, reject) => {
    axios.get(url, {}).then(function (response) {
      resolve(response)
    })
  })
}
// 查询问题详细数据
export function GetRemarkinfo(data) {
  var url = "http://localhost:3000/projectProblemApi/remarkinfoQuery?Id=" + data
  return new Promise((resolve, reject) => {
    axios.get(url, {}).then(function (response) {
      resolve(response)
    })
  })
}
// 删除问题详细数据
export function DeleteRemarkinfo(data) {
  var url =
    "http://localhost:3000/projectProblemApi/DeleteProject?ProjectId=" + data
  return new Promise((resolve, reject) => {
    axios.get(url, {}).then(function (response) {
      resolve(response)
    })
  })
}
// 新增问题详细数据
export function AddRemarkinfo(data) {
  debugger
  var url = " http://localhost:3000/projectProblemApi/AddProject"
  return new Promise((resolve, reject) => {
    axios.post(url, data).then(function (response) {
      resolve(response)
    })
  })
}
